package com.pic4493.controls;

import android.content.Context;
import android.view.Gravity;
import android.widget.GridView;
import android.widget.LinearLayout;

public class CstMainGridView extends GridView
{

   public CstMainGridView(Context context)
   {
	  super(context);
	  setGridView(context);

   }
   
   private void setGridView(Context context)
   {
	  LinearLayout.LayoutParams params=new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.WRAP_CONTENT);
	  setLayoutParams(params);
	  setNumColumns(2);
	  setGravity(Gravity.CENTER_VERTICAL);
	  setVerticalSpacing(0);
	  setHorizontalSpacing(0);
   }

}
